package
{
	
	import flash.display.Sprite;
	import flash.events.Event;
	
	import game.Game;
	import game.event.ProcessEvent;
	import game.material.MateriaLoader;
	
	import starling.core.Starling;
	
	public class LLLottery extends Sprite
	{
		private var _starling:Starling;
		
		public function LLLottery()
		{
			super();
			materialInit();
		}
		
		/**
		 * 素材
		 */		
		private function materialInit():void
		{
			MateriaLoader.instant.addEventListener(ProcessEvent.PROCESS_EVENT,initGame);
			MateriaLoader.instant.initMaterial();
		}
		
		/**
		 * 初始化游戏数据 
		 */		
		private function initGame(event:Event):void
		{
			_starling = new Starling(Game, stage);
			_starling.showStats=true;
			_starling.start();
		}		
		
		
	
		//----------------------------------------------
		// utils
		//----------------------------------------------
		
	}
}